<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
		<title><%= yield(:title) || "Welcome to Simo 1.0" %></title>
		<%= stylesheet_link_tag 'main/master' %>
		<%= javascript_include_tag :defaults, 'jquery.jeditable' %>
	</head>
	<body>
		<div id="container">
			<div id="wrap">
			   
			   <div id="user_profile">
			      <table class="profile">
			         <tr>
			            <td><%= user_photo(:thumb) %></td>
			            <td valign="top">
			               <%= user_profile.name %>
			               <br />
			               <% user_profile.title %>
			            </td>
			         </tr>
			      </table>
			   </div>
		
				<div id="error"><%= flash[:error] %></div>
				<div id="notice"><%= flash[:notice] %></div>
				
				<ul id="profile_navigation">
					<li class="my_profile"><%= link_to('My profile', user_path(current_user, :subdomain => current_subdomain)) %></li>
					<li class="logout"><%= link_to('Logout', logout_path) %></li>
				</ul>

				<ul id="navigation">
					<%= render :partial => 'users/navigation', :object => user_profile %>
				</ul>
			
				<div id="header">
					<h1 id="logo">Simo 1.0</h1>
					<%= yield(:header) %> <!-- Content for header -->
				</div>
				<div id="content">
					<%= yield %>
				</div>
			</div>
			<div id="footer">
				<p class="copyright">Copyright &copy; 2008 Noyra.</p>
			</div>
		</div>
	</body>
</html>
